package au.com.cmcrc.tradelab.pm.util;

public class StringUtils {

	  /**
	   * Remove the leading and trailing quotes from <code>str</code>.
	   * E.g. if str is '"one two"', then 'one two' is returned.
	   *
	   * @param str The string from which the leading and trailing quotes
	   * should be removed.
	   *
	   * @return The string without the leading and trailing quotes.
	   */
	
	  public static String stripLeadingAndTrailingQuotes(String str)
	  {
	      if (str.startsWith("\""))
	      {
	          str = str.substring(1, str.length());
	      }
	      if (str.endsWith("\""))
	      {
	          str = str.substring(0, str.length() - 1);
	      }
	      return str;
	  }

	
}
